package com.example.myapplication.fragments.fragmentsmodel;

import androidx.databinding.BaseObservable;
import androidx.databinding.Bindable;

import com.example.myapplication.BR;

/**
*寻人启事实体类
*/
public class Missing extends BaseObservable {
    String name;
    String age;
    String time;
    String location;
    String tip;
    private Boolean isFired = false;

    public Missing(String name, String age, String time, String location, String tip) {
        this.name = name;
        this.age = age;
        this.time = time;
        this.location = location;
        this.tip = tip;
    }

    @Bindable
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
        notifyPropertyChanged(BR.name);
    }

    @Bindable
    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
        notifyPropertyChanged(BR.age);
    }

    @Bindable
    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
        notifyPropertyChanged(BR.time);
    }

    @Bindable
    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
        notifyPropertyChanged(BR.location);
    }

    @Bindable
    public String getTip() {
        return tip;
    }

    public void setTip(String tip) {
        this.tip = tip;
        notifyPropertyChanged(BR.tip);
    }

    @Bindable
    public Boolean getFired() {
        return isFired;
    }

    public void setFired(Boolean fired) {
        isFired = fired;
        //刷新所有有关的ui
        notifyChange();
    }
}
